<?php

namespace app\controllers;

use app\models\HomeDao;
use app\models\weixin\T_WXMALL_DORACARD;
use Yii;
use app\lib\WXBaseController;
use app\models\BagDao;
use app\models\weixin\T_WXMALL_USER;
use app\lib\WeixinUtils;
use app\lib\WebService;
use app\lib\wxpay\WxPayUnifiedOrder;
use app\lib\wxpay\WxPayTools;
use app\lib\wxpay\WxPayApi;

class SpecialController extends WXBaseController
{

    public function beforeAction($action)
    {
//        $userinfo = WeixinUtils::weixin_userinfo_filter();
//        if ($userinfo == null) {
//            echo "验证失败";
//            return false;
//        }
        return true;
    }

    //龙珠专题
    public function actionDragonBall()
    {
        return $this->render("dragon-ball");
    }

    public function actionDragonCard()
    {
        $list = T_WXMALL_DORACARD::getDragonCardList();
        return $this->render("dragon-card", ['list' => $list]);
    }
}